<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<script language="JavaScript" type="text/javascript" src="../datePicker/WdatePicker.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #666666;
	font-weight: bold;
}
.STYLE5 {color: #666666}
.STYLE6 {
	color: #135294;
	font-weight: bold;
}
-->
</style>
<form method="post" action="askReponseList.action">
 <table width="95%" border="1" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
 	<tr>
 		<td  colspan="6" background="images/bg_table.jpg" bgcolor="#ECEAE6" align="center">查询</td>
 	</tr>
 	
	<tr bgcolor='#F1F3F5'>
 		<td width="10%">产品类型</td>
 		<td width="20%">
 			<select name="msgtype" id="msgtype">
 			<!-- 
 				<option value="-1" <s:if test='msgtype==-1'> selected</s:if> >请选择</option>
 			  -->
 				<option value="1" <s:if test='msgtype==1'> selected</s:if>>手机</option>
 				<option value="2" <s:if test='msgtype==2'> selected</s:if>>配件</option>
 		</select> 			 
	  </td>
 		<td width="10%">处理类型</td>
 		<td width="20%">
 			<select name="dealFlagStr" id="dealFlagStr">
 			<%--
 			 	<option value="-1" <s:if test='dealFlagStr==-1'>selected</s:if> >请选择</option>
 			 --%>
 				<option value="0" <s:if test='dealFlagStr == "0" '> selected</s:if> >未处理</option>
 				<option value="1" <s:if test='dealFlagStr == "1" '> selected</s:if> >已处理</option>
 		</select> 			 
	  </td>
 		<td width="7%">时间</td> 		 
	  <td width="33%">
	  	<input class="Wdate" type="text" id="beginDate" name="beginDate" value="<s:property value='beginDate'/>"  onFocus="WdatePicker({isShowClear:false,readOnly:true})"/>
	  		-
	  	<input class="Wdate" type="text" id="endDate" name="endDate" value="<s:property value='endDate'/>" onFocus="WdatePicker({isShowClear:false,readOnly:true})"/>
  	  </td>
	</tr>	
	<tr>
		<td  colspan="6"    nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6"  align="center"><input type="submit" /></td>
	</tr>
</table> 
</form>
<br/>
<div align="center">咨询问题列表</div>
 <table width="98%" border="0" cellpadding="3" cellspacing="2" bgcolor="#FFFFFF" align="center">
 	<tr>
 		<td width="70%" nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6">手机名称</td>
	 
 		<td width="15%" nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6"></td>
 		<td width="15%" nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6">操作</td>
 	</tr>
 	<s:iterator value="askReponses">
 	<tr bgcolor='#F1F3F5' onmouseover = "this.style.backgroundColor = '#FFDCB0'" onmouseout = "this.style.backgroundColor = ''" style=''>
 		<td>
 			<s:if test="msgtype==1">
 			<a href="<%=contextPath%>/detailMobile.action?productId=<s:property value='productId'/>" target="_blank">
 			<s:if test="askcontent.length()>20">
            <s:property value="askcontent.substring(0,20)+'...'"/>
			</s:if>
 			<s:if test="askcontent.length()<=20">
 			<s:property value="askcontent"/>
			</s:if>
 			</a>
 		 
 			</s:if>
 			<s:if test="msgtype==2">
 			<a href="<%=contextPath%>/pjDetail.action?peijianId=<s:property value='productId'/>" target="_blank">
 			<s:if test="askcontent.length()>20">
            <s:property value="askcontent.substring(0,20)+'...'"/>
			</s:if>
 			<s:if test="askcontent.length()<=20">
 			<s:property value="askcontent"/>
			</s:if>
 			</a>
 			 
 			</s:if>
 		</td>
 		<td>
 			<s:if test="dealFlag==1">已处理</s:if>
 			<s:if test="dealFlag==0">未处理</s:if>
 		</td>
 		<td>		
 		<a href="beforReponse.action?askreponseRecordId=<s:property value='id'/>">回复</a>&nbsp;
 		<a href="deleteAsk.action?askreponseRecordId=<s:property value='id'/>" onclick="javascript:if(confirm('确定删除咨询吗')) return true; else return false;">删除</a>&nbsp;
 	 	</td>
 	</tr>
 	</s:iterator>
 	<tr><td colspan="3" nowrap  bgcolor='#E4EDF9'>
 	<a href="askReponseList.action?currentPage=<s:property value='prevPage'/>">上一页</a>
 	<a href="askReponseList.action?currentPage=<s:property value='nextPage'/>">下一页</a>
 	共<s:property value='totalPage'/>页
 	</td><tr/>
 </table> 
 <%--
 <table width="95%" border="0" cellpadding="3" cellspacing="2" bgcolor="#FFFFFF" align="center">
 	<tr>
 		<td   nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6" align="left">
			<a href="product.action">新增</a>
			<a href="beforUpdateProduct.action?productId=<s:property value='id'/>">编辑</a>&nbsp;
 		<a href="deleteProduct.action?productId=<s:property value='id'/>" onclick="javascript:if(confirm('确定删除该手机吗')) return true; else return false;">删除</a>&nbsp;
 		<a href="productBase.action?productId=<s:property value='id'/>&langId=<s:property value='langId'/>">基本功能</a>&nbsp;
 		<a href="productDigiFunc.action?productId=<s:property value='id'/>&langId=<s:property value='langId'/>">数据应用功能</a>&nbsp;
 		<a href="productCameraFunc.action?productId=<s:property value='id'/>&langId=<s:property value='langId'/>">拍照功能</a>&nbsp;
 		<a href="productMultimediaFunc.action?productId=<s:property value='id'/>&langId=<s:property value='langId'/>">多媒体娱乐功能</a>&nbsp;
		</td>
 	</tr>
 	<tr>
</table> 
--%>